CREATE OR REPLACE FUNCTION get_rest_id() RETURNS uuid AS $BLOCK$
DECLARE
	rest_id uuid;
BEGIN
	rest_id = get_value('rest_id');
	RETURN rest_id;
END;
$BLOCK$ language plpgsql;
